import sun.util.resources.cldr.nn.CalendarData_nn_NO;

/**
 * Created with IntelliJ IDEA.
 * Description:
 */
public class Test {

    public static void main(String[] args) {
        Animal animal1 = new Animal("圆圆");
        animal1.eat();
        Animal animal2 = new Cat("扁扁");
        animal2.eat();
    }

    public static void main1(String[] args) {
        Animal cat = new Cat("heihei");
        cat.eat();
        Bird bird = new Bird("yuanyuan","我要飞");
        bird.fly();
        feed(bird);
        Animal animal = findMyAnimal();
    }

    public static void feed(Animal animal){
        animal.eat();
    }

    public static Animal findMyAnimal(){
        Cat cat = new Cat("haha");
        return cat;
    }
}
